
final_result = {}
with open("./fake_test.txt") as f:
    lines = f.readlines()
    for i,line in enumerate(lines):
        if line.replace("\n","") == "text":
            continue
        one_result = {}
        one_result["id"] = i
        one_result["text"] = lines[i].replace("\n","")
        final_result[str(i)] = one_result

# rule-based matching and retrieve



# model



with open("./argmax_result.txt","r") as f:
    lines = f.readlines()
    for line in lines:
        temp = line.split(" ")
        id = temp[0].replace("\n","")
        if temp[1].replace("\n","") == "argmax":
            final_result[id]["argmax"] = True
        else:
            final_result[id]["argmax"] = False




with open("./xnum_result.txt","r") as f:
    lines = f.readlines()
    for line in lines:
        temp = line.split(" ")
        id = temp[0].replace("\n","")
        if temp[1].replace("\n","") == "xy":
            final_result[id]["xy"] = True
        else:
            final_result[id]["xy"] = False

print()